package com.jt.tenant.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.jt.tenant.R;

/**
 * Created by Administrator on 2016/2/16.
 */
public class FaultAnalysisActivity extends JTActivity {

    private String descrption;

    private String suggest;

    private TextView mDescrptionText;

    private TextView mSuggestText;


    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_fault_analysis);

        initView();

        getBundleData();

    }

    private void getBundleData(){

        Intent intent  = getIntent();

        Bundle bundle = intent.getExtras();

        descrption = bundle.getString("descrption","");

        suggest = bundle.getString("suggest","");

        mDescrptionText.setText(descrption);

        mSuggestText.setText(suggest);

    }

    private void initView(){

        ((TextView)findViewById(R.id.tv_title_name)).setText("故障解析");

        mDescrptionText = (TextView)findViewById(R.id.dtc_descrption);

        mSuggestText = (TextView) findViewById(R.id.dtc_suggest);


    }

}
